<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/views1/DTD/views1-transitional.dtd">
<f:view xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui">

	<p:dialog header="Desativar perfil" resizable="false"
		widgetVar="dlgDesativarPerfil" width="400" appendToBody="true"
		modal="true">
		<h:form id="formDesativar">
			<p:panel>
				<h:outputLabel value="Deseja realmente desativar o perfil "/>
				<h:outputLabel value="#{perfilBean.perfilInstance.nome}"/>
				<h:outputLabel value=" ?"/>
				<div class="div-dialog-spacer">
					<p:separator />
					<br />
					<p:commandButton
						update="formPrincipal, formEdit, formCreate, formDesativar, formAtivar, formDelete"
						action="#{perfilBean.desativarPerfil}" value="Sim"
						oncomplete="dlgDesativarPerfil.hide()" ajax="true" />
					<p:commandButton type="button" value="Não"
						onclick="dlgDesativarPerfil.hide()" />
				</div>
			</p:panel>
		</h:form>
	</p:dialog>
</f:view>